<%@ page language="java" contentType="text/html; UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%-- Declare the core library --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>create new account</title>
</head>
<body>

<form action="./?cmd=CreateUser" method="post">
    login:
	<input type="text" name="login" value="${requestScope.user.login}"/>
	<c:if test="${not empty requestScope.errorMap['login']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['login']}" />
	    </span>
    </c:if>
	<br/>
	password:
	<input type="password" name="password"/>
	<c:if test="${not empty requestScope.errorMap['password']}">
	    <span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['password']}" />
	    </span>
    </c:if>
    <br/>
    confirm password:
	<input type="password" name="passwordConfirm"/>
	<c:if test="${not empty requestScope.errorMap['passwordConfirm']}">
	    <span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['passwordConfirm']}" />
	    </span>
    </c:if>
    <br/>	
    name:
	<input type="text" name="name" value="${requestScope.user.name}"/>
	<c:if test="${not empty requestScope.errorMap['name']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['name']}" />
	    </span>
    </c:if>
	<br/>
    surname:
	<input type="text" name="surname" value="${requestScope.user.surname}"/>
	<c:if test="${not empty requestScope.errorMap['surname']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['surname']}" />
	    </span>
    </c:if>
	<br/>
    address:
	<input type="text" name="address" value="${requestScope.user.address}"/>
	<c:if test="${not empty requestScope.errorMap['address']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['address']}" />
	    </span>
    </c:if>
	<br/>
	tel:
	<input type="text" name="tel" value="${requestScope.user.tel}"/>
	<c:if test="${not empty requestScope.errorMap['tel']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['tel']}" />
	    </span>
    </c:if>
	<br/>
	email:
	<input type="text" name="email" value="${requestScope.user.email}"/>
	<c:if test="${not empty requestScope.errorMap['email']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['email']}" />
	    </span>
    </c:if>
	<br/>
	
	money on your account:
	<input type="text" name="money" value="${requestScope.user.money}"/>
	<c:if test="${not empty requestScope.errorMap['money']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['money']}" />
	    </span>
    </c:if>
	<br/>
    	
	<br/>
	<input type="submit" value="ok"/>
</form>

</body>
</html>